option(ENABLED_MASTER OFF)
option(ENABLED_PLUGINS OFF)

if(${ENABLED_MASTER})
    add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/DrillingrigCore)
    add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/DrillingrigApp)
    add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/MediaItem)
    if(${ENABLED_PLUGINS})
        add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/Plugins)
    endif()
endif()
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
